package com.szqhyxj.youxiangju.biz.partnerHome.equipment.currentRecord;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;

import com.szqhyxj.youxiangju.biz.partnerHome.equipment.bean.Record;

import java.util.List;

/**
 * XiaoPanYu
 * on 2018/11/22
 */
public class CurrentRecordAdapter extends BaseExpandableListAdapter{

    private List<String> timeList;
    private List<Record> recordList;

    public CurrentRecordAdapter(List<String> timeList,List<Record> recordList){
        this.timeList = timeList;
        this.recordList = recordList;
    }

    @Override
    public int getGroupCount(){
        return timeList.size();
    }

    @Override
    public int getChildrenCount(int i){
        return recordList.size();
    }

    @Override
    public Object getGroup(int i){
        return timeList.get(i);
    }

    @Override
    public Object getChild(int i, int i1){
        return recordList.get(i);
    }

    @Override
    public long getGroupId(int i){
        return i;
    }

    @Override
    public long getChildId(int i, int i1){
        return i;
    }

    @Override
    public boolean hasStableIds(){
        return false;
    }

    @Override
    public View getGroupView(int i, boolean b, View view, ViewGroup viewGroup){
        //R.layout.list_current_group_item
        return null;
    }

    @Override
    public View getChildView(int i, int i1, boolean b, View view, ViewGroup viewGroup){
        //R.layout.list_current_child_item
        return null;
    }

    @Override
    public boolean isChildSelectable(int i, int i1){
        return true;
    }
}
